package com.big.merchan.controller.api;


import com.big.common.result.Result;
import com.big.merchan.service.MerchandiseSpecificationService;
import com.big.model.model.merchandise.MerchandiseDetail;
import com.big.model.model.merchandise.MerchandiseSpecification;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/merchan/specification")
public class MerchandiseSpecificationController {

   @Autowired
   MerchandiseSpecificationService specificationService;

    //商品规格详情
    @ApiOperation(value = "商品规格详情")
    @GetMapping("/findSpec/{mId}")
    public Result  findSpecification(@PathVariable("mId") String mId){
        MerchandiseSpecification specification = specificationService.findSpecification(mId);
        return Result.ok(specification);
    }




}
